package com.springboot.framework.mvc.service;

import com.springboot.framework.mvc.mapper.driver.BaseMapperDriver;
import org.apache.ibatis.annotations.*;

import java.util.List;
import java.util.Map;

/**
 * service层公用方法接口
 * @param <T>
 */
public interface BaseService<T> {

    T getById(int id);

    List<T> getByCondition(Map paramsMap);

    List<T> getByCondition(T model);

    Long insert(T model);

    Long updateById(T model);

    Long deleteById(int id);

    Boolean existById(int id);
}
